<template>
  <div>
    <h1>纯粹百度地图</h1>
   <div id="container"></div> 
  </div>
</template>

<script>
  export default {
    name:'com-baidumap',
    data () {
      return {
        
      }
    },
    mounted () {
      var map = new window.BMap.Map('container');
      var point = new window.BMap.Point(116.404, 39.915)
      map.centerAndZoom(point, 20)
    }
  }
</script>
<style lang="less" scoped>
 #container{
   width:800px;
   height:600px;
   border: 1px solid black;
 }
</style>